# Maintainer: Jan de Groot <jgc@archlinux.org>
# Contributor: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
# Contributor: Panagiotis Papadopoulos

pkgname=wildmidi
pkgver=0.4.1
pkgrel=1
pkgdesc='Open Source MIDI Synthesizer'
arch=('i686' 'x86_64')
url="https://www.mindwerks.net/projects/wildmidi/"
license=('LGPL3')
depends=('alsa-lib')
makedepends=('cmake')
source=(https://github.com/psi29a/wildmidi/archive/wildmidi-${pkgver}.tar.gz)
sha256sums=('880f1cb5bf68589915a82a8e603ff561bdda7ddb5864c15ad28b5428d4abf9ea')

prepare() {
  mkdir build
}

build() {
  cd build
  cmake -D CMAKE_INSTALL_PREFIX=/usr ../$pkgname-$pkgname-$pkgver
  make
}

package() {
  cd build
  make DESTDIR="${pkgdir}" install
}
